/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * InternalFrame_Kendaraan.java
 *
 * Created on Nov 23, 2011, 7:32:50 PM
 */
package Boundaries;

import Controller.Registration_Controller;
import Entities.Kendaraan;
import Entities.Servis;
import Entities.Sewa;
import TableModel.Kendaraan_List;
import TableModel.Kendaraan_TableModel;
import com.toedter.calendar.JDateChooser;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
//import sun.java2d.pipe.SpanShapeRenderer.Simple;

/**
 *
 * @author Adrian
 */
public class InternalFrame_Persewaan extends javax.swing.JInternalFrame {

    /** Creates new form InternalFrame_Kendaraan */
 
    public InternalFrame_Persewaan(String username) {
        try {
            initComponents();
            label_Sewa_Peringatan.setVisible(false);
            label_Sewa_NilaiUserName.setText(username);
            TimerTask timerTask = new TimerTask() {

                public void run() {
                    Date g = new Date();
                    label_Time_Sewa.setText(g.toLocaleString());
                }
            };
            Timer t = new Timer();
            t.scheduleAtFixedRate(timerTask, 0, 1000);

            List<Kendaraan> kategori = Kendaraan_List.getKendaraanList().getAllKendaraanDistinct();
            for (Kendaraan k : kategori) {
                ComboBox_Sewa_MerkKendaraan.addItem(k.getMerk_kendaraan());
            }

            GregorianCalendar now=new GregorianCalendar();
            dateChosser_Sewa_TanggalSewa.setDate(now.getTime());
            dateChosser_Sewa_TanggalKembali2.setDate(now.getTime());

            Sewa sewa = new Sewa();
            tf_Sewa_noFaktur.setText(sewa.fakturSewa());
        } catch (SQLException ex) {
            Logger.getLogger(InternalFrame_Persewaan.class.getName()).log(Level.SEVERE, null, ex);
        }

    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jPanel3 = new javax.swing.JPanel();
        label_Sewa_noFaktur = new javax.swing.JLabel();
        tf_Sewa_noFaktur = new javax.swing.JTextField();
        tf_Sewa_namaPenyewa = new javax.swing.JTextField();
        label_Sewa_NamaPenyewa = new javax.swing.JLabel();
        label_Sewa_AlamatPenyewa = new javax.swing.JLabel();
        jScrollPane4 = new javax.swing.JScrollPane();
        ta_Sewa_AlamatPenyewa = new javax.swing.JTextArea();
        tf_Sewa_TelpPenyewa = new javax.swing.JTextField();
        label_Sewa_NoTelpPenyewa = new javax.swing.JLabel();
        jPanel4 = new javax.swing.JPanel();
        label_Sewa_NoPolisiKendaraan = new javax.swing.JLabel();
        ComboBox_Sewa_MerkKendaraan = new javax.swing.JComboBox();
        tf_Sewa_statusKendaraan = new javax.swing.JTextField();
        label_Sewa_StatusKendaraan = new javax.swing.JLabel();
        dateChosser_Sewa_TanggalKembali2 = new com.toedter.calendar.JDateChooser();
        tf_Sewa_UangSewa = new javax.swing.JTextField();
        uangSewaLabel = new javax.swing.JLabel();
        label_Sewa_TanggalKembali = new javax.swing.JLabel();
        tf_Sewa_noPolisiKendaraan = new javax.swing.JTextField();
        label_Sewa_TanggalSewa1 = new javax.swing.JLabel();
        label_Sewa_Peringatan = new javax.swing.JLabel();
        button_GenerateHarga = new javax.swing.JButton();
        dateChosser_Sewa_TanggalSewa = new com.toedter.calendar.JDateChooser();
        label_Sewa_MerkKendaraan2 = new javax.swing.JLabel();
        button_Sewa_Ok = new javax.swing.JButton();
        button_Sewa_Cancel = new javax.swing.JButton();
        label_Time_Sewa = new javax.swing.JLabel();
        label_Sewa_NilaiUserName = new javax.swing.JLabel();
        label_Sewa_username = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        jPanel5 = new javax.swing.JPanel();

        setResizable(true);
        setPreferredSize(new java.awt.Dimension(1010, 480));
        getContentPane().setLayout(null);

        jPanel1.setBackground(new java.awt.Color(255, 255, 255));
        jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Boundaries/Persewaan Kendaraan.jpg"))); // NOI18N
        jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1000, 100));

        getContentPane().add(jPanel1);
        jPanel1.setBounds(0, 0, 950, 100);

        jPanel2.setBackground(new java.awt.Color(204, 204, 255));
        jPanel2.setLayout(null);

        jPanel3.setBackground(new java.awt.Color(204, 204, 255));
        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 255), 2, true), "Data Pelanggan"));

        label_Sewa_noFaktur.setFont(new java.awt.Font("Times New Roman", 0, 12));
        label_Sewa_noFaktur.setText("No Faktur");

        tf_Sewa_noFaktur.setEditable(false);

        tf_Sewa_namaPenyewa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tf_Sewa_namaPenyewaActionPerformed(evt);
            }
        });

        label_Sewa_NamaPenyewa.setFont(new java.awt.Font("Times New Roman", 0, 12));
        label_Sewa_NamaPenyewa.setText("Nama Penyewa");

        label_Sewa_AlamatPenyewa.setFont(new java.awt.Font("Times New Roman", 0, 12));
        label_Sewa_AlamatPenyewa.setText("Alamat Penyewa");

        ta_Sewa_AlamatPenyewa.setColumns(20);
        ta_Sewa_AlamatPenyewa.setRows(5);
        jScrollPane4.setViewportView(ta_Sewa_AlamatPenyewa);

        label_Sewa_NoTelpPenyewa.setFont(new java.awt.Font("Times New Roman", 0, 12));
        label_Sewa_NoTelpPenyewa.setText("No. Telp. Penyewa");

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(label_Sewa_noFaktur)
                    .addComponent(label_Sewa_NoTelpPenyewa)
                    .addComponent(label_Sewa_AlamatPenyewa)
                    .addComponent(label_Sewa_NamaPenyewa))
                .addGap(18, 18, 18)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(tf_Sewa_noFaktur, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(tf_Sewa_namaPenyewa, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(tf_Sewa_TelpPenyewa, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(16, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(label_Sewa_noFaktur)
                    .addComponent(tf_Sewa_noFaktur, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(tf_Sewa_namaPenyewa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(label_Sewa_NamaPenyewa))
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(3, 3, 3)
                        .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(label_Sewa_AlamatPenyewa)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(label_Sewa_NoTelpPenyewa)
                    .addComponent(tf_Sewa_TelpPenyewa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(56, Short.MAX_VALUE))
        );

        jPanel2.add(jPanel3);
        jPanel3.setBounds(10, 40, 330, 250);

        jPanel4.setBackground(new java.awt.Color(204, 204, 255));
        jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2), "Data Kendaraan"));
        jPanel4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        label_Sewa_NoPolisiKendaraan.setFont(new java.awt.Font("Times New Roman", 0, 12));
        label_Sewa_NoPolisiKendaraan.setText("Merk Kendaraan");
        jPanel4.add(label_Sewa_NoPolisiKendaraan, new org.netbeans.lib.awtextra.AbsoluteConstraints(16, 23, -1, -1));

        ComboBox_Sewa_MerkKendaraan.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                ComboBox_Sewa_MerkKendaraanItemStateChanged(evt);
            }
        });
        ComboBox_Sewa_MerkKendaraan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ComboBox_Sewa_MerkKendaraanActionPerformed(evt);
            }
        });
        jPanel4.add(ComboBox_Sewa_MerkKendaraan, new org.netbeans.lib.awtextra.AbsoluteConstraints(128, 20, 110, -1));

        tf_Sewa_statusKendaraan.setEditable(false);
        tf_Sewa_statusKendaraan.setEnabled(false);
        jPanel4.add(tf_Sewa_statusKendaraan, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 90, 81, -1));

        label_Sewa_StatusKendaraan.setFont(new java.awt.Font("Times New Roman", 0, 12));
        label_Sewa_StatusKendaraan.setText("Status Kendaraan");
        jPanel4.add(label_Sewa_StatusKendaraan, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 90, -1, -1));

        dateChosser_Sewa_TanggalKembali2.setEnabled(false);
        dateChosser_Sewa_TanggalKembali2.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                dateChosser_Sewa_TanggalKembali2PropertyChange(evt);
            }
        });
        jPanel4.add(dateChosser_Sewa_TanggalKembali2, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 150, 120, -1));

        tf_Sewa_UangSewa.setEditable(false);
        tf_Sewa_UangSewa.setEnabled(false);
        jPanel4.add(tf_Sewa_UangSewa, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 220, 83, -1));

        uangSewaLabel.setFont(new java.awt.Font("Times New Roman", 0, 12));
        uangSewaLabel.setText("Uang Sewa");
        jPanel4.add(uangSewaLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 220, -1, -1));

        label_Sewa_TanggalKembali.setFont(new java.awt.Font("Times New Roman", 0, 12));
        label_Sewa_TanggalKembali.setText("Tanggal Kembali");
        jPanel4.add(label_Sewa_TanggalKembali, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 150, -1, -1));

        tf_Sewa_noPolisiKendaraan.setEditable(false);
        jPanel4.add(tf_Sewa_noPolisiKendaraan, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 60, 81, -1));

        label_Sewa_TanggalSewa1.setFont(new java.awt.Font("Times New Roman", 0, 12));
        label_Sewa_TanggalSewa1.setText("Tanggal Sewa");
        jPanel4.add(label_Sewa_TanggalSewa1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 120, -1, -1));

        label_Sewa_Peringatan.setFont(new java.awt.Font("Times New Roman", 0, 10)); // NOI18N
        label_Sewa_Peringatan.setForeground(new java.awt.Color(255, 0, 0));
        label_Sewa_Peringatan.setText("Kendaraan tidak dapat disewa");
        jPanel4.add(label_Sewa_Peringatan, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 40, 190, -1));

        button_GenerateHarga.setFont(new java.awt.Font("Tahoma", 0, 10));
        button_GenerateHarga.setText("Generate Uang Sewa");
        button_GenerateHarga.setEnabled(false);
        button_GenerateHarga.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button_GenerateHargaActionPerformed(evt);
            }
        });
        jPanel4.add(button_GenerateHarga, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 180, 190, 30));

        dateChosser_Sewa_TanggalSewa.setEnabled(false);
        dateChosser_Sewa_TanggalSewa.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                dateChosser_Sewa_TanggalSewaPropertyChange(evt);
            }
        });
        jPanel4.add(dateChosser_Sewa_TanggalSewa, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 120, 120, -1));

        label_Sewa_MerkKendaraan2.setFont(new java.awt.Font("Times New Roman", 0, 12));
        label_Sewa_MerkKendaraan2.setText("No Polisi Kendaraan");
        jPanel4.add(label_Sewa_MerkKendaraan2, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 60, -1, -1));

        jPanel2.add(jPanel4);
        jPanel4.setBounds(350, 40, 300, 250);

        button_Sewa_Ok.setText("Proceed");
        button_Sewa_Ok.setEnabled(false);
        button_Sewa_Ok.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button_Sewa_OkActionPerformed(evt);
            }
        });
        jPanel2.add(button_Sewa_Ok);
        button_Sewa_Ok.setBounds(310, 310, 90, 23);

        button_Sewa_Cancel.setText("Cancel");
        button_Sewa_Cancel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button_Sewa_CancelActionPerformed(evt);
            }
        });
        jPanel2.add(button_Sewa_Cancel);
        button_Sewa_Cancel.setBounds(595, 310, 90, 23);

        label_Time_Sewa.setText("Time");
        jPanel2.add(label_Time_Sewa);
        label_Time_Sewa.setBounds(730, 10, 210, 14);

        label_Sewa_NilaiUserName.setText("jLabel3");
        jPanel2.add(label_Sewa_NilaiUserName);
        label_Sewa_NilaiUserName.setBounds(70, 10, 34, 14);

        label_Sewa_username.setText("Username");
        jPanel2.add(label_Sewa_username);
        label_Sewa_username.setBounds(10, 10, 60, 14);

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "No Polisi", "Tipe Kendaran", "Warna", "Tanggal Servis"
            }
        ));
        jTable1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTable1MouseClicked(evt);
            }
        });
        jScrollPane1.setViewportView(jTable1);

        jPanel2.add(jScrollPane1);
        jScrollPane1.setBounds(660, 50, 320, 214);

        getContentPane().add(jPanel2);
        jPanel2.setBounds(0, 100, 1010, 350);

        jPanel5.setBackground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 110, Short.MAX_VALUE)
        );

        getContentPane().add(jPanel5);
        jPanel5.setBounds(950, 0, 100, 110);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void tf_Sewa_namaPenyewaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tf_Sewa_namaPenyewaActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_tf_Sewa_namaPenyewaActionPerformed

    private void button_Sewa_OkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_button_Sewa_OkActionPerformed
        Registration_Controller reg_Control = new Registration_Controller();
        try {
            reg_Control.cekRegistration(this);
        } catch (SQLException ex) {
            Logger.getLogger(InternalFrame_Persewaan.class.getName()).log(Level.SEVERE, null, ex);
        }

    }//GEN-LAST:event_button_Sewa_OkActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed

        Registration_Controller reg_Control = new Registration_Controller();
        reg_Control.generate_Table_Model(this);

    }//GEN-LAST:event_jButton1ActionPerformed

    private void jTable1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTable1MouseClicked

       Registration_Controller reg_Control=new Registration_Controller();
       reg_Control.generateDataFromTable(this);

    }//GEN-LAST:event_jTable1MouseClicked

    private void ComboBox_Sewa_MerkKendaraanItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_ComboBox_Sewa_MerkKendaraanItemStateChanged

        tf_Sewa_noPolisiKendaraan.setText(null);
        tf_Sewa_statusKendaraan.setText(null);
        dateChosser_Sewa_TanggalSewa.setEnabled(false);
        dateChosser_Sewa_TanggalKembali2.setEnabled(false);
        tf_Sewa_UangSewa.setEnabled(false);
        button_Sewa_Ok.setEnabled(false);
        
        Registration_Controller reg_Control = new Registration_Controller();
        reg_Control.generate_Table_Model(this);
         if(jTable1.getModel().getRowCount()==0){

                label_Sewa_Peringatan.setVisible(true);
        }else{
            label_Sewa_Peringatan.setVisible(false);
        }

        
    }//GEN-LAST:event_ComboBox_Sewa_MerkKendaraanItemStateChanged

    private void dateChosser_Sewa_TanggalKembali2PropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_dateChosser_Sewa_TanggalKembali2PropertyChange
        // TODO add your handling code here:
        tf_Sewa_UangSewa.setText("");
    }//GEN-LAST:event_dateChosser_Sewa_TanggalKembali2PropertyChange

    private void button_GenerateHargaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_button_GenerateHargaActionPerformed
        Registration_Controller.generateHargaSewa(this);
    }//GEN-LAST:event_button_GenerateHargaActionPerformed

    private void button_Sewa_CancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_button_Sewa_CancelActionPerformed
        // TODO add your handling code here:
        Registration_Controller reg_Control = new Registration_Controller();
        reg_Control.resetAllField(this);

        tf_Sewa_noPolisiKendaraan.setText(null);
        tf_Sewa_statusKendaraan.setText(null);
        dateChosser_Sewa_TanggalSewa.setEnabled(false);
        dateChosser_Sewa_TanggalKembali2.setEnabled(false);
        tf_Sewa_UangSewa.setEnabled(false);
        button_Sewa_Ok.setEnabled(false);
    }//GEN-LAST:event_button_Sewa_CancelActionPerformed

    private void dateChosser_Sewa_TanggalSewaPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_dateChosser_Sewa_TanggalSewaPropertyChange
        // TODO add your handling code here:
        tf_Sewa_UangSewa.setText("");
    }//GEN-LAST:event_dateChosser_Sewa_TanggalSewaPropertyChange

    private void ComboBox_Sewa_MerkKendaraanActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ComboBox_Sewa_MerkKendaraanActionPerformed
        // TODO add your handling code here:
//        if(jTable1.getModel().getRowCount()<1){
//
//                JOptionPane.showMessageDialog(null, "Kendaraan Kosong");
//
//        }
    }//GEN-LAST:event_ComboBox_Sewa_MerkKendaraanActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    public javax.swing.JComboBox ComboBox_Sewa_MerkKendaraan;
    public javax.swing.JButton button_GenerateHarga;
    private javax.swing.JButton button_Sewa_Cancel;
    public javax.swing.JButton button_Sewa_Ok;
    public com.toedter.calendar.JDateChooser dateChosser_Sewa_TanggalKembali2;
    public com.toedter.calendar.JDateChooser dateChosser_Sewa_TanggalSewa;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JScrollPane jScrollPane1;
    public javax.swing.JScrollPane jScrollPane4;
    public javax.swing.JTable jTable1;
    private javax.swing.JLabel label_Sewa_AlamatPenyewa;
    private javax.swing.JLabel label_Sewa_MerkKendaraan2;
    private javax.swing.JLabel label_Sewa_NamaPenyewa;
    public javax.swing.JLabel label_Sewa_NilaiUserName;
    private javax.swing.JLabel label_Sewa_NoPolisiKendaraan;
    private javax.swing.JLabel label_Sewa_NoTelpPenyewa;
    private javax.swing.JLabel label_Sewa_Peringatan;
    private javax.swing.JLabel label_Sewa_StatusKendaraan;
    private javax.swing.JLabel label_Sewa_TanggalKembali;
    private javax.swing.JLabel label_Sewa_TanggalSewa1;
    private javax.swing.JLabel label_Sewa_noFaktur;
    public javax.swing.JLabel label_Sewa_username;
    private javax.swing.JLabel label_Time_Sewa;
    public javax.swing.JTextArea ta_Sewa_AlamatPenyewa;
    public javax.swing.JTextField tf_Sewa_TelpPenyewa;
    public javax.swing.JTextField tf_Sewa_UangSewa;
    public javax.swing.JTextField tf_Sewa_namaPenyewa;
    public javax.swing.JTextField tf_Sewa_noFaktur;
    public javax.swing.JTextField tf_Sewa_noPolisiKendaraan;
    public javax.swing.JTextField tf_Sewa_statusKendaraan;
    private javax.swing.JLabel uangSewaLabel;
    // End of variables declaration//GEN-END:variables
}
